Optimal. Leaf size=61 \[ -\frac{\left (a^2-b^2\right ) \log (a+b \sin (c+d x))}{b^3 d}+\frac{a \sin (c+d x)}{b^2 d}-\frac{\sin ^2(c+d x)}{2 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0677086, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {2668, 697} \[ -\frac{\left (a^2-b^2\right ) \log (a+b \sin (c+d x))}{b^3 d}+\frac{a \sin (c+d x)}{b^2 d}-\frac{\sin ^2(c+d x)}{2 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2668
Rule 697
Rubi steps
\begin{align*} \int \frac{\cos ^3(c+d x)}{a+b \sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{b^2-x^2}{a+x} \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=\frac{\operatorname{Subst}\left (\int \left (a-x+\frac{-a^2+b^2}{a+x}\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac{\left (a^2-b^2\right ) \log (a+b \sin (c+d x))}{b^3 d}+\frac{a \sin (c+d x)}{b^2 d}-\frac{\sin ^2(c+d x)}{2 b d}\\ \end{align*}
Mathematica [A] time = 0.0766312, size = 54, normalized size = 0.89 \[ \frac{-\left (a^2-b^2\right ) \log (a+b \sin (c+d x))+a b \sin (c+d x)-\frac{1}{2} b^2 \sin ^2(c+d x)}{b^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.001, size = 72, normalized size = 1.2 \begin{align*} -{\frac{ \left ( \sin \left ( dx+c \right ) \right ) ^{2}}{2\,bd}}+{\frac{a\sin \left ( dx+c \right ) }{{b}^{2}d}}-{\frac{\ln \left ( a+b\sin \left ( dx+c \right ) \right ){a}^{2}}{d{b}^{3}}}+{\frac{\ln \left ( a+b\sin \left ( dx+c \right ) \right ) }{bd}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.945538, size = 74, normalized size = 1.21 \begin{align*} -\frac{\frac{b \sin \left (d x + c\right )^{2} - 2 \, a \sin \left (d x + c\right )}{b^{2}} + \frac{2 \,{\left (a^{2} - b^{2}\right )} \log \left (b \sin \left (d x + c\right ) + a\right )}{b^{3}}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.73674, size = 128, normalized size = 2.1 \begin{align*} \frac{b^{2} \cos \left (d x + c\right )^{2} + 2 \, a b \sin \left (d x + c\right ) - 2 \,{\left (a^{2} - b^{2}\right )} \log \left (b \sin \left (d x + c\right ) + a\right )}{2 \, b^{3} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18506, size = 76, normalized size = 1.25 \begin{align*} -\frac{\frac{b \sin \left (d x + c\right )^{2} - 2 \, a \sin \left (d x + c\right )}{b^{2}} + \frac{2 \,{\left (a^{2} - b^{2}\right )} \log \left ({\left | b \sin \left (d x + c\right ) + a \right |}\right )}{b^{3}}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]